package com.jgp.workflow.lisener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.activiti.engine.impl.persistence.entity.TaskEntity;

/**
 * 项目   jgp-cloud-parent
 * 作者   loufei
 * 时间   2019/1/11
 */
public class UserTaskListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        String taskDefKey = delegateTask.getTaskDefinitionKey();
        delegateTask.getCandidates().forEach(identityLink -> {
            System.out.println();
        });
        ((TaskEntity)delegateTask).getExecution().getActivity().getOutgoingTransitions();
    }
    
}
